package com.geek.spring.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *  基于注解注入
 */
@Service
public class CDPlayer2 {

    @Autowired
    private CompactDisc2 compactDisc2;

    public void play(String str) {
        compactDisc2.play(str);
    }

}